// 图表选项类型
export interface ChartOption {
  tooltip: {
    trigger: string;
    formatter?: (params: any) => string;
  };
  legend: {
    show: boolean;
  };
  series: Array<{
    type: string;
    radius: string[];
    center: string[];
    data: Array<{
      value: number;
      name: string;
      itemStyle?: {
        color: string;
      };
      label?: {
        show: boolean;
      };
    }>;
  }>;
}

// 统计卡片数据类型
export interface StatisticItem {
  title: string;
  value: string;
  trend: 'up' | 'down';
  percentage: string;
}

// 图表项类型
export interface ChartItem {
  title: string;
  tooltip: string;
  component: any;
  option: {
    tooltip: {
      trigger: string;
      formatter?: (params: any) => string;
    };
    legend: {
      show: boolean;
    };
    series: Array<{
      type: string;
      radius: string[];
      center: string[];
      data: Array<{
        value: number;
        name: string;
        itemStyle?: {
          color: string;
        };
        label?: {
          show: boolean;
        };
      }>;
    }>;
  };
  highlight?: boolean;
}

// 下拉选项类型
export interface SelectOption {
  value: string;
  label: string;
  enum: string;
} 